/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package db;

import java.util.ArrayList;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author titnana
 */
@WebService()
public class databaseWS {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getdata")
    public String getdata(int n) {
        ArrayList<String> data = new ArrayList<String>();
        data.add("Cecile");
        data.add("Mikael");
        data.add("Anais");
        return data.get(n);
    }

}
